package com.solutec.tag10;


class kreis{
	int radius;
}

public class Thema2_ArraysReferenzen {

	public static void main(String[] args) {

		System.out.println("-------- A. ----------");
		kreis[] arr1 = new kreis[50];
		
		for(kreis var:arr1){
			System.out.print(var + " ");
		}
		System.out.println();
		
		System.out.println("-------- B. ----------");
		kreis k20 = arr1[20];
//		System.out.println(k20.radius);

		for(int i=0; i<arr1.length; i++){
			arr1[i] = new kreis();
		}
	
		k20 = arr1[20];
		System.out.println("Kreis 20: " +k20);
		System.out.println("Radius  : " +k20.radius);
	
	}//end of main

}
